cmake_minimum_required(VERSION 2.8.11)
project(DataIO)

# add boost 
find_package(Boost COMPONENTS filesystem system REQUIRED)
message("-- Found Boost dir: ${Boost_INCLUDE_DIRS}")
message("-- Found Boost lib: ${Boost_LIBRARIES}")
include_directories(${Boost_INCLUDE_DIRS})

include_directories(${PROJECT_SOURCE_DIR}/include)

# build the library
add_library(${PROJECT_NAME} STATIC
    ${PROJECT_SOURCE_DIR}/src/DataReader.cpp)

# and link it
target_link_libraries(${PROJECT_NAME}
  PRIVATE ${Boost_LIBRARIES}
)

# installation if required
# install(TARGETS ${PROJECT_NAME}
#   EXPORT PBATargets 
#   ARCHIVE DESTINATION "${INSTALL_LIB_DIR}" COMPONENT lib)

# install(DIRECTORY include/ DESTINATION ${INSTALL_INCLUDE_DIR} COMPONENT dev FILES_MATCHING PATTERN "*.hpp")